import request from '@/utils/request'

// 查询盘点任务信息列表
export function listMdInvChkTask(query) {
  return request({
    url: '/storage/mdInvChkTask/list',
    method: 'get',
    params: query
  })
}

// 查询盘点任务信息详细
export function getMdInvChkTask(taskId) {
  return request({
    url: '/storage/mdInvChkTask/' + taskId,
    method: 'get'
  })
}

//查询任务明细
export function getMdInvChkTaskDetails(query) {
  return request({
    url: '/storage/mdInvChkTaskDet/list',
    method: 'get',
    params: query
  })
}

//查询任务结果
export function getMdInvChkTaskResults(query) {
  return request({
    url: '/storage/mdInvChkRlst/list',
    method: 'get',
    params: query
  })
}

// 新增盘点任务信息
export function addMdInvChkTask(data) {
  return request({
    url: '/storage/mdInvChkTask',
    method: 'post',
    data: data
  })
}

// 修改盘点任务信息
export function updateMdInvChkTask(data) {
  return request({
    url: '/storage/mdInvChkTask',
    method: 'put',
    data: data
  })
}

// 删除盘点任务信息
export function delMdInvChkTask(taskId) {
  return request({
    url: '/storage/mdInvChkTask/' + taskId,
    method: 'delete'
  })
}
